<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>hello world!!!</title>
<script type="text/javascript" src="../js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="../js/easyvalidator/js/easy_validator.pack.js"></script>
<script type="text/javascript" src="../js/easyvalidator/js/jquery.bgiframe.min.js"></script>
<link href="../js/easyvalidator/css/validate.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var DG = frameElement.lhgDG;
DG.addBtn( 'ok', '提交添加', function(){
									  $.ajax({
									  		  type:'post',
											  url:'../../index.php/staffManage/add',
											  data:{'username':$('#usernameld').val(),'password':$('#passwordld').val(),'isLock':$('#isLockld').val()},
											  dataType:'html',
		  									  beforeSend:function(){ $("#hidden_H").html("正在提交请稍候...");},
			   								  error:function(msg){
											  	$('#hidden_H').html(msg).show();
												//DG.closeTime( 3 );
											  },
             								  success:function(msg){
            									$("#hidden_H").html(msg).show();
												//DG.closeTime( 3 );
           								      }	   
									  });
							});
</script> 
<style type="text/css">
#sky_form input{ margin-top:6px; width:150px;}
ul{ list-style:none; width:230px; margin-left:45px;}
ul li{ width:220px; margin-top:10px; font-size:14px; color:#033d61;}
</style>
</head>
<body>
<form action="../../index.php/personal/addComment" name="sky_form" id="sky_form" method="post">
	<ul>
        <li>帐号:<input type="text" name="username" id="usernameld" reg="^[A-Za-z0-9]+$" tip="可以由数字或字母组成" /></li>
        <li>密码:<input type="password" name="password" id="passwordld" reg="^[A-Za-z0-9]+$" tip="可以由数字或字母组成" /></li>
        <li>状态:<select name="isLock" id="isLockld" reg="[^.+$]" tip="状态必选">
                        <option value="">请选择</option>
                        <option value="0">激活</option>
                        <option value="1">锁定</option>
                </select>
        </li>
    </ul>
</form>
<center><span id="hidden_H" style="color:#930; font-size:12px; margin-top:20px;"></span></center>
</body>
</html>
